package com.liangtian.mdm.dm.jsp.model;

@SuppressWarnings("unused")
public class GenCheck {

    private String attrName;  //要校验的属性名称   如c_001  c_002
    private String name;  //属性名称
    private String checkType; //校验的类型   必填 require  校验长度 length
    private String checkContion; //校验条件  >  <  !=
    private String checkContionStr; //提示信息转换
    private String compareValue;  //比较的值
    private String scope;  //初始化scope

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getCheckType() {
        return checkType;
    }

    public void setCheckType(String checkType) {
        this.checkType = checkType;
    }

    public String getCheckContion() {
        return checkContion;
    }

    public void setCheckContion(String checkContion) {
        this.checkContion = checkContion;
    }

    public String getCompareValue() {
        return compareValue;
    }

    public void setCompareValue(String compareValue) {
        this.compareValue = compareValue;
    }

    public String getScope() {
        return "$scope";
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCheckContionStr() {
        return checkContionStr;
    }

    public void setCheckContionStr(String checkContionStr) {
        if (">".equals(this.getCheckContion())) {
            checkContionStr = "大于";
        } else if ("<".equals(this.getCheckContion())) {
            checkContionStr = "小于";
        } else if ("!=".equals(this.getCheckContion())) {
            checkContionStr = "不等于";
        } else {
            checkContionStr = "等于";
        }
        this.checkContionStr = checkContionStr;
    }


}
